sorting list by date time dec in c#

37

sorting list by date time dec in c# -

docs.Sort((x, y) => x.StoredDate.CompareTo(y.StoredDate));
docs.Reverse();

sorting list by date time dec in c# -

docs.Sort((x, y) => y.StoredDate.CompareTo(x.StoredDate));

Comments

Submit
0 Comments